package me.xue.communityhealth.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 员工
 * 信息：员工姓名，联系方式，现居地，入职时间，职务，部门，性别，年龄，职工号，肖像
 */
@Getter
@Setter
public class Staff extends Personnel implements Serializable {

    @NotBlank(message = "员工名不能为空")
    private String name;

    @NotBlank(message = "联系方式不能为空")
    private String phone;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @NotNull
    private Date entryDate;

    @NotBlank(message = "职务不能为空")
    private String post;

    @NotBlank(message = "部门不能为空")
    private String department;

    //工号
    private String number;

    //挂号类型
    private String registeredType;

    private Registration registration;

}
